package com.woniu.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wnxt_trainer")
@Schema(title = "用户")
public class Trainer implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(title = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @NotBlank(message = "请输入培训师名称")
    @Schema(title = "姓名")
    private String name;

    @Schema(title = "简介")
    private String intro;

    @Schema(title = "资历")
    private String career;

    @NotNull(message = "请输入培训师头衔")
    @Schema(title = "头衔：1初级 2中级 3高级 4首席")
    private Integer level;

    @Schema(title = "头像")
    private String avatar;

    @Schema(title = "排序")
    private Integer sort;

    @TableLogic
    @Schema(title = "逻辑删除：0未删除 1已删除")
    private Integer isDeleted;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}
